merged [20982]: Fixed capitilization of MySpace in all places, and enabled the MySpac...
[adiumx.git] / Plugins / Purple Service / CBPurpleServicePlugin.m
blobcf48bead14ae0f4ae87ac2b81526c9ef110008e5
1 /* 
2  * Adium is the legal property of its developers, whose names are listed in the copyright file included
3  * with this source distribution.
4  * 
5  * This program is free software; you can redistribute it and/or modify it under the terms of the GNU
6  * General Public License as published by the Free Software Foundation; either version 2 of the License,
7  * or (at your option) any later version.
8  * 
9  * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
10  * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
11  * Public License for more details.
12  * 
13  * You should have received a copy of the GNU General Public License along with this program; if not,
14  * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
15  */
17 #import "CBPurpleServicePlugin.h"
18 #import "PurpleServices.h"
19 #import "SLPurpleCocoaAdapter.h"
20 #import <Adium/AIPreferenceControllerProtocol.h>
21 #import <Adium/AIAccount.h>
22 #import <AIUtilities/AIDictionaryAdditions.h>
23 #import <AdiumLibpurple/SLPurpleCocoaAdapter.h>
25 @implementation CBPurpleServicePlugin
27 #pragma mark Plugin Installation
28 //  Plugin Installation ------------------------------------------------------------------------------------------------
30 #define PURPLE_DEFAULTS   @"PurpleServiceDefaults"
32 - (void)installPlugin
34         //Register our defaults
35     [[adium preferenceController] registerDefaults:[NSDictionary dictionaryNamed:PURPLE_DEFAULTS
36                                                                                                                                                 forClass:[self class]]
37                                                                                   forGroup:GROUP_ACCOUNT_STATUS];
38         
39     //Install the services
40         AIMService                      = [[ESAIMService alloc] init];
41         DotMacService           = [[ESDotMacService alloc] init];
42         ICQService                      = [[ESICQService alloc] init];
43         GaduGaduService         = [[ESGaduGaduService alloc] init];
44         GTalkService            = [[AIGTalkService alloc] init];
45         LiveJournalService  = [[AILiveJournalService alloc] init];
46         MSNService                      = [[ESMSNService alloc] init];
47         MySpaceService          = [[PurpleMySpaceService alloc] init];
48         QQService                       = [[ESQQService alloc] init];
49         SimpleService           = [[ESSimpleService alloc] init];
50         NovellService           = [[ESNovellService alloc] init];
51         JabberService           = [[ESJabberService alloc] init];
52         YahooService            = [[ESYahooService alloc] init];
53         YahooJapanService       = [[ESYahooJapanService alloc] init];   
54         ZephyrService           = [[ESZephyrService alloc] init];
56 #ifndef MEANWHILE_NOT_AVAILABLE
57         MeanwhileService        = [[ESMeanwhileService alloc] init];
58 #endif
59         
60         [SLPurpleCocoaAdapter pluginDidLoad];
63 - (void)uninstallPlugin
65         [AIMService release]; AIMService = nil;
66         [DotMacService release]; DotMacService = nil;
67         [ICQService release]; ICQService = nil;
69         [GaduGaduService release]; GaduGaduService = nil;
70         [GTalkService release]; GTalkService = nil;
71         [LiveJournalService release]; LiveJournalService = nil;
72         [JabberService release]; JabberService = nil;
73         [MSNService release]; MSNService = nil;
74         [MySpaceService release]; MySpaceService = nil;
75         [SimpleService release]; SimpleService = nil;
76         [QQService release]; QQService = nil;
77         [YahooService release]; YahooService = nil;
78         [YahooJapanService release]; YahooJapanService = nil;
79         [NovellService release]; NovellService = nil;
80         [ZephyrService release]; ZephyrService = nil;
82 #ifndef MEANWHILE_NOT_AVAILABLE
83         [MeanwhileService release]; MeanwhileService = nil;
84 #endif
87 @end